/**
 * Date & Time: jquery.user.js
 * jquery.user.js
 * @author Geoffrey
 * Description: Added Javascript for assigned user route this ius exlusive for form only.
 */
var base = $('base').attr('href');
var controller = 'user';
var user_id = $('#img-uploadUserImage').attr('user');

if(user_id === undefined){
	renderUpload(base + '/' + controller + '/uploadNewUserImage', 'uploadNewUserImage');
	renderUpload(base + '/' + controller + '/uploadNewUserSignatureImage', 'uploadNewUserSignatureImage');
} else {
	renderUpload(base + '/' + controller + '/uploadUserImage/' + user_id, 'uploadUserImage');
	renderUpload(base + '/' + controller + '/uploadUserSignatureImage/' + user_id, 'uploadUserSignatureImage');
}
